package registnet.records;

public class Department {

	private String departmentCode;
	private String departmentName;
	College college;
	
	
	/**
	 * Default constructor
	 */
	public Department(){}
	
	
	/**
	 * Constructs a department with an assigned department code
	 * 
	 * @param departmentCode - The code assigned to a department
	 */
	public Department(String departmentCode){
		this.departmentCode = departmentCode;
	}

	
	/**
	 * Gets the code assigned to the department
	 * 
	 * @return 	The code assigned to the department
	 */
	public String getDepartmentCode() {
		return departmentCode;
	}

	
	/**
	 * Sets the code assigned to the department
	 * 
	 * @param departmentCode - The code assigned to the department
	 */
	public void setDepartmentCode(String departmentCode) {
		this.departmentCode = departmentCode;
	}

	
	/**
	 * Gets the name of the department
	 * 
	 * @return 	The name of the department
	 */
	public String getDepartmentName() {
		return departmentName;
	}

	
	/**
	 * Sets the name of the department
	 * 
	 * @param departmentName - The name of the department
	 */
	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	
	/**
	 * Gets the parent college of the department
	 * 
	 * @return 	The parent college of the department
	 */
	public College getCollege() {
		return college;
	}

	
	
	/**
	 * Sets the parent college of the department
	 * 
	 * @param college - The parent college of the department
	 */
	public void setCollege(College college) {
		this.college = college;
	}
	
}
